-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Autostart Feature on Profiler / Visual Profiler / Network Profiler #70766
Conversation
84eb748
to
095a4f3
Compare
f3a505c
to
ab4bd92
Compare
ab4bd92
to
a4e9ad6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me from a cursory glance, although there are some stylistic changes to make (see review comments).
a4e9ad6
to
d116bd2
Compare
@Calinou Updated. Thanks for the review. |
71c4432
to
bbc1818
Compare
Could this possibly be scheduled for 4.2? |
This pull request needs a rebase first. Also, feature freeze is in a few days, so it's not guaranteed that it can be finalized and merged before feature freeze occurs. @stmSi Please rebase this PR if you have time 🙂 |
bbc1818
to
2a4f48b
Compare
@Calinou I rebased the PR.. ready to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected.
I noticed two issues with the feature's design though:
- The Autostart button is on the left in the Network Profiler tab, but on the right in the Profiler and Visual Profiler tabs. This should be made consistent across all 3 tabs.
- I suggest putting Autostart on the left in all 3, so that it's close to the Start button.
- The setting is stored as a project setting, not an editor setting or per-project metadata. This means the value is persisted to version control, even though it's not relevant for other team members in a project (and can cause noisy diffs to be committed to version control).
- I suggest using project metadata instead, which isn't committed to version control but is still defined on a per-project basis. You can use
EditorSettings::get_singleton()->set_project_metadata()
for this purpose.
- I suggest using project metadata instead, which isn't committed to version control but is still defined on a per-project basis. You can use
@Calinou , Sorry I forgot about the changes, working on it. |
2a4f48b
to
468a733
Compare
Hi @Calinou , I made changes according to feedbacks. Could you please review the changes? |
Disregard the above review, it's because we merged Ninja recently and I forgot to update my build script so I was running an old binary. |
a2259f6
to
768c8c1
Compare
I just rebased to master and tested again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected.
My only remaining concern is about the Auto Start button: why does it have its focus released as soon as you click it? The other buttons like Start and Clear don't do this in their respective profiler.
simplescreenrecorder-2024-04-04_18.43.57.mp4
No particular reason. During my test, I just didn't like border focus on the button.. xd . |
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Hey @stmSi, |
Hi @Geometror , sorry for the late reply. You can take over this PR. |
proposal: #6017
This also fix for bug where "Network Profiler" Stop Button not updating to Start but the running program was already closed. just like this bug #70143